import request from '@/utils/request'
import fileRequest from "@/utils/fileRequest";
/**
 * 获取民族列表
 * @param params
 * @returns {*}
 */
export function getAdminQuestionnaireConfigApi(params) {
  return request({
    url: '/getAdminQuestionnaireConfig',
    method: 'GET',
    params
  })
}
/**
 * 获取学历列表
 * @param params
 * @returns {*}
 */
export function getEducationApi(params) {
  return request({
    url: '/getEducation',
    method: 'GET',
    params
  })
}
/**
 * 获取问卷调查列表
 * @param params
 * @returns {*}
 */
export function getQuestionnaireInvestigationListApi(params) {
  return request({
    url: '/getQuestionnaireInvestigationList',
    method: 'GET',
    params
  })
}

/**
 * 导出列表筛选数据
 * @param data
 * @returns {*}
 */
export function getQuestionnaireInvestigationTablesApi(params) {
  return fileRequest({
    url: '/getQuestionnaireInvestigationTables',
    method: 'POST',
    params
  })
}
/**
 * 添加城镇未就业
 * @param data
 * @returns {*}
 */
export function addQuestionnaireInvestigation(data){
  return request({
    url:'/addQuestionnaireInvestigationBack',
    method: 'POST',
    data
  })
}
/**
 * 导出列表统计数据
 * @param data
 * @returns {*}
 */
export function getQuestionnaireInvestigationStatisticsApi(params) {
  return fileRequest({
    url: '/getQuestionnaireInvestigationStatistics',
    method: 'POST',
    params
  })
}

export function getQuestionnaireConfig(params){
  return request({
    url:'/getQuestionnaireConfig',
    method: 'GET',
    params
  })
}
/**
 * 获取问卷调查(单个)
 * @param params
 * @returns {*}
 */
export function getQuestionnaireInvestigationByIdApi(params) {
  return request({
    url: '/getQuestionnaireInvestigationById',
    method: 'GET',
    params
  })
}
/**
 * 查询帮扶列表
 * @param params
 * @returns {*}
 */
export function getHelpListApi(params) {
  return request({
    url: '/getHelpList',
    method: 'GET',
    params
  })
}
/**
 * 添加帮扶
 * @param data
 * @returns {*}
 */
export function addHelpApi(data){
  return request({
    url:'/addHelp',
    method: 'POST',
    data
  })
}
/**
 * 修改就业状态
 * @param data
 * @returns {*}
 */
export function editIsWorkApi(data){
  return request({
    url:'/editIsWork',
    method: 'POST',
    data
  })
}
/**
 * 查询就业去向
 * @param data
 * @returns {*}
 */
export function getWorkGoApi(data){
  return request({
    url:'/getWorkGo',
    method: 'POST',
    data
  })
}

/**
 * 删除帮扶记录
 * @param params
 * @returns {*}
 */
export function delHelpApi(params) {
  return request({
    url: '/delHelp',
    method: 'GET',
    params
  })
}




